import { kgjHttp as http } from '@/services/http';
import type { ImageUploadDto } from '@/types/api/upload';
/** 公共的上传图片的接口 */
export const uploadImage = (data: ImageUploadDto) =>
  http({
    url: '/api/invoice/upload/image',
    method: 'post',
    data
  });

export const uploadImage2 = (data: ImageUploadDto) =>
  http({
    url: '/api/gold-crm/activity/image',
    method: 'post',
    data
  });
